﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Gallery.aspx.vb" Inherits="Gallery" MasterPageFile="~/MainLayout.master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <script type="text/javascript" src="scripts/overlib.js"></script>
    <asp:Label ID="lblStaffUID" runat="server" Visible="false" />
    <asp:Label ID="lblStaffType" runat="server" Visible="false" />
    <div>
        <h1>Gallery Search</h1>
        <hr />

        <div runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
            <span class="title">Error</span><br />
            <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
        <div runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">

            <span class="title">Successful</span><br />
            <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />

        </div>

        <p><%--Description of the page--%></p>

        <!--Slide Out Adv Search Here-->
        <asp:Panel ID="pnlFilter" runat="server">


            <table class="SearchFilter" width="100%" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td width="30">&nbsp;</td>
                        <td width="120">Title</td>
                        <td width="250">
                            <asp:TextBox ID="txtTitle" runat="server" Width="300px" /></td>
                        <td width="30">&nbsp;</td>
                        <td width="120" style="color: #FFFFFF">Source</td>
                        <td width="250">
                            <asp:TextBox ID="txtSource" runat="server" Width="300px" Visible="False" />
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>Description</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtDetails" runat="server" Width="300px" /></td>
                        <td>&nbsp;</td>

                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>Create Date</td>
                        <td colspan="4">
                            <asp:TextBox ID="txtDateMin" runat="server" Width="300px" /><asp:ImageButton runat="Server" ID="imgToDateCal" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                            <cc1:CalendarExtender ID="ceToDate" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtDateMin" PopupButtonID="imgToDateCal" />
                            to
                            <asp:TextBox ID="txtDateMax" runat="server" Width="300px" />
                            <asp:ImageButton runat="Server" ID="ImageButton1" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtDateMax" PopupButtonID="ImageButton1" />
                            &nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>

                    <tr>
                        <td>&nbsp;</td>
                        <td colspan="5" align="right">
                            <div style="border-top: 1px solid #c2c2c2; height: 20px; padding-top: 10px;">
                                <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="search-btn" Width="80" />
                                <asp:Button ID="btnResetSearchFilter" runat="server" Text="Reset" CssClass="search-btn" Width="60" />
                            </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </tbody>

            </table>

            <br />

            <!--Result Pane Here-->

        </asp:Panel>

        <table class="ResultPanelContainer" border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>

                    <table class="ResultPanelHeader" border="0" width="100%">
                        <tr>
                            <td>
                                <asp:Label ID="lblHeadNoOfItem" runat="server" Text="0" />&nbsp;items total</td>
                            <td align="right">Number of entries per page :
                                <asp:LinkButton ID="lnkHead10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkHead25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkHead100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkHead150Item" runat="server" Text="150" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>

                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ResultPanelDataDisplay" id="PropertyList">
                        <thead>
                            <tr>
                                <th scope="col" id="first-col"><strong>
                                    <asp:LinkButton ID="lnkTitle" runat="server" Text="Title ▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkDetails" runat="server" Text="Description ▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkDate" runat="server" Text="Date ▼" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"></th>


                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="repUpload" runat="server">
                                <ItemTemplate>
                                    <tr>

                                        <asp:Label ID="lblProjectId" runat="server" Text='<%#Container.DataItem("GelleryId").ToString%>' Visible="false" />

                                        <td id="first-col">
                                            <asp:LinkButton ID="lnlTitle" runat="server" Text='<%#Container.DataItem("GelleryTitle").ToString%>' CommandArgument='<%#Container.DataItem("GelleryId").ToString%>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblDetails" runat="server" Text='<%#Container.DataItem("Description").ToString%>' CommandArgument='<%#Container.DataItem("GelleryId").ToString%>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblDate" runat="server" Text='<%# Bind("CreateDate", "{0:dd-MMM-yyyy}") %>' CommandArgument='<%#Container.DataItem("GelleryId").ToString%>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:ImageButton ID="imgRepDelete" runat="server" ImageUrl="~/images/style01/DeleteButton.png" Style="vertical-align: middle;" AlternateText="Delete" CommandName="DeleteItem" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                            <cc1:ConfirmButtonExtender ID="cbe" runat="server" TargetControlID="imgRepDelete" ConfirmText="Are you sure you want to delete?" />
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>

                </td>
            </tr>
            <tr>
                <td>
                    <table class="ResultPanelFooter" width="100%">
                        <tr>
                            <td>
                                <asp:Label ID="lblFootNoOfItem" runat="server" Text="0" />&nbsp; items total</td>
                            <td align="center" valign="middle">
                                <asp:Panel ID="pnlNavigation" runat="server" Style="text-align: center; vertical-align: middle;">
                                    <asp:ImageButton ImageUrl="images/style01/Btn-jump-first.png" ID="btnMoveFirst" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-back.png" ID="btnPrevious" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:TextBox ID="txtPageNo" runat="server" Text="1" Height="12" Width="28" Font-Size="10px" Style="text-align: center; vertical-align: middle;" onkeypress="return isNumberKeyOnly(event)" onpaste="return isNumberKeyOnly(event)" />&nbsp;
                                <asp:Label ID="lblTotalPage" runat="server" Height="20" Font-Size="10px" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-go.png" ID="btnGo" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-foward.png" ID="btnNext" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-last.png" ID="btnMoveLast" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />
                                    <asp:Label ID="lblMaxPageCount" runat="server" Visible="false" Height="20" Font-Size="10px" Style="vertical-align: middle;" />
                                </asp:Panel>
                            </td>
                            <td align="right">Number of entries per page :
                                <asp:LinkButton ID="lnkFoot10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkFoot25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkFoot100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkFoot150Item" runat="server" Text="150" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>

        <asp:Label ID="lblhidSortType" runat="server" Visible="false" Text=" ORDER BY CreateDate DESC" />
    </div>

</asp:Content>
